import request from '@/utils/request';

export async function queryRule(params) {
  const limit = params.pageSize;
  const page = params.current;
  const my_params = {
    limit: limit,
    page: page,
  };
  Object.assign(params, my_params);
  delete params.current;
  delete params.pageSize;
  return request('/activity/activity/activityOrderAdmin/page', { params });
}
export async function queryStore(params) {
  return request('store/store/list', {
    params,
  });
}
// 查询商品列表
export async function queryOrderGoods(params) {
  return request('activity/activity/activityOrderGoods/list', {
    params,
  });
}
// 查询商品列表
export async function queryOrderDeliver(params) {
  return request('activity/activity/orderDeliver/list', {
    params,
  });
}
// 审核退款
export async function requestRefund(params) {
  return request('activity/activity/handleRefundOrder', {
    method: 'POST',
    data: params,
  });
}
